/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.classes.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 培训计划表 实体类
 *
 * @author junxin
 * @since 2023-04-26
 */
@Data
@TableName("ts_training_plan")
@ApiModel(value = "TrainingPlan对象", description = "培训计划表")
@EqualsAndHashCode(callSuper = true)
public class TrainingPlanEntity extends TenantEntity {

	/**
	 * 乐观锁
	 */
	@ApiModelProperty(value = "乐观锁")
	private String revision;
	/**
	 * 培训计划名称
	 */
	@ApiModelProperty(value = "培训计划名称")
	private String planName;


	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	private String sort;
	/**
	 * 备注说明
	 */
	@ApiModelProperty(value = "备注说明")
	private String remark;

	/**
	 * 培训计划开始时间
	 */
	@ApiModelProperty(value = "培训计划开始时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date startTime;


	/**
	 * 培训计划结束时间
	 */
	@ApiModelProperty(value = "培训计划结束时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date endTime;

	/**
	 * 计划类型
	 * 1厂级培训
	 * 2班组级培训
	 * 3相关方培训
	 * 4技能鉴定培训
	 */
	@ApiModelProperty(value = "计划类型")
	private Integer trainingType;


	/**
	 * 是否需要考核(0 否，1是)
	 */
	@ApiModelProperty(value = "是否需要考核(0 否，1是)")
	private Integer isExam;

	/**
	 * 年度(YYYY)
	 */
	@ApiModelProperty(value = "年度")
	private String year;
}
